package com.xia.response;

public enum ResultCode implements CustomizeResultCode {

    /**
     * 2000 成功
     */
    SUCCESS(2000,"成功"),
    /**
     * 失败
     */
    ERROR(20001,"失败"),
    /**
     * 除数不能为0
     */
    ARITHMETIC_EXCEPTION(3006,"算数异常")

    /**
     * 用户不存在
     */
    ,USER_NOT_EXCEPTION(3007,"用户不存在")
    ;
    private Integer code;
    private String message;
    ResultCode(Integer code,String message){
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

}
